
<template>
  <div class="login-container">
    <div class="login-logo">
      <el-form :model="form" status-icon :rules="rules" ref="form" label-width="100px" class="login-form" 
        backgorund:blue>
        <div>
        <el-row width="150%" row-style="height:20px" cell-style="padding:0" style="margin-top:0px">
          <el-col :span="18" style="height:100px;margin-bottom:100px;" >
            <p style="font-size:40px;margin-top:0px;margin-left:300px;">Scyphozoa music</p>
          </el-col>
          <el-col :span="10" :offset="8"  style="margin-top:20px">
              <el-col :span="12" style="margin-right:0px;"><img src="../../assets/img/Scyphozoa.png" href="localhost:8080/weixinLogin"></el-col>
                          <el-row style="font-size:12px;margin-bottom:0px;height:20px">
              </el-row>
              <el-row type="flex" style="font-size:12px;margin-bottom:10px;height:40px">
            <el-col :span="9">
              <p type="text"  style="font-size:15px;margin-left:100px; margin-bottom:30px;">修改密码</p>
            </el-col>
                 </el-row>
            <el-col>
            <el-form-item label="" prop="username">
              <el-input v-model.number="form.username" placeholder="新密码"></el-input>
            </el-form-item>
            <el-form-item label="" prop="password" >
              <el-input type="password" v-model="form.password" autocomplete="off" placeholder="确认新密码"></el-input>
            </el-form-item>
            <el-form-item  style="margin-left:20px">
              <el-button type="primary" @click="submitForm" size="mini" style="width: 100px; height: 30px;margin-right:0px;" round>立即注册</el-button>
            </el-form-item>
            <div style="margin-left:110px">
            <span style="font-size:10px">已有账号？</span><el-button type="text" @click="submitForm" style="font-size:10px">立刻登录</el-button>
           </div>
           </el-col>
          </el-col>

        </el-row>
        </div>
      </el-form>
    </div>
  </div>
</template>
<script>

export default {
  data() {
    return {
      data: {
        tab: true,
      },
      form: {
        username: "",
        password: "",
      },
      rules: {
        username: [{ required: true, message: "请输入账号", trigger: "blur" }],
        password: [{ required: true, message: "请输入昵称", trigger: "blur" }],
      },
    };
  },
  methods: {
    submitForm() {
      login(this.form.username, this.form.password)
        .then((res) => {
          //  console.log(res);
          console.log("成功访问");
        })
        .catch((err) => {
          console.log("err", err);
        });
    },
    tabSwitch() {
      console.log("gamamo");
      this.$router.push("Localhost:8080/wxLogin");
    }
  },
};
</script>
<style scoped>
.login-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: 100% 100%;
  background-color: #d7f6fa;
  background-repeat: no-repeat;
}

.login-form {
  width: 100% auto;
  margin: 0px auto;
  height: 100%;
  padding: 30px;
  border-radius: 20px;
}

.title-zc {
  text-align: center;
}

.login-ui {
  position: absolute;
  width: 100%;
  height: 10%;
  overflow: hidden;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.login-font-ss {
  font-size: 14px;
  line-height: 28px;
  text-align: left;
  color: rgb(238, 238, 238);
  color: #585858;
  text-indent: 2em;
}

.el-row {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap
}
</style>
